#include <stdio.h>
#include <stdlib.h>
#include <csp_spu.h>
#include <csp_debug.h>

int Run(){
	int pid = csp_pid();	
	PRINTF_FOR_TESTING("Process running with pid=%d on spe #%d - yielding...\n", pid, csp_spe_id());
	csp_yield();
/*	
	PRINTF_FOR_TESTING("Process running with pid=%d on spe #%d - yielding...\n", csp_pid(), csp_spe_id());
	csp_yield();
	
	PRINTF_FOR_TESTING("Process running with pid=%d on spe #%d - yielding...\n", csp_pid(), csp_spe_id());
	csp_yield();
	
	PRINTF_FOR_TESTING("Process running with pid=%d on spe #%d - yielding...\n", csp_pid(), csp_spe_id());
	csp_yield();
	
	PRINTF_FOR_TESTING("Process running with pid=%d on spe #%d - yielding...\n", csp_pid(), csp_spe_id());
	csp_yield();

	PRINTF_FOR_TESTING("Process running with pid=%d on spe #%d - yielding...\n", csp_pid(), csp_spe_id());
	csp_yield();
*/
	ASSERT( pid == csp_pid() );
	PRINTF_FOR_TESTING("Terminating with pid=%d on spe #%d.\n", csp_pid(), csp_spe_id());

	return 632954;
}

